
#include <BFocusEvent>
#include "member_BEvent.h"

using namespace BWE;

BFocusEvent::BFocusEvent(Focus focus) : BEvent(Event_Focus)
{
	event_member(this)->focusType = focus;
}
BFocusEvent::BFocusEvent(const BPoint& point, Focus focus) : BEvent(Event_Focus)
{
	event_member(this)->value = point;
	event_member(this)->focusType = focus;
}
BFocusEvent::~BFocusEvent()
{

}

void BFocusEvent::setFocus(Focus focus)
{
	event_member(this)->focusType = focus;
}
Focus BFocusEvent::focus() const
{
	return event_member(this)->focusType;
}

void BFocusEvent::setPoint(const BPoint& point)
{
	event_member(this)->value = point;
}
const BPoint& BFocusEvent::point() const
{
	return event_member(this)->value;
}
